package com.pl.myshop.commons.dto.errorcode;

/**
 * @Auther: pl
 * @Date: 2020/3/26 09:51
 * @Description:
 */
public enum ErrorCodeEnmu {

    /**
     *
     */
    FEIGN_SEARCH_ERROR(20004, "feign熔断"),

    /**
     *
     */
    SEARCH_ERROR(500, "查询失败"),

    /**
     *
     */
    SEARCH_SUCCESS(200, "查询成功"),

    /**
     *
     */
    PARAMS_NULL_ERROR(500,"参数为空"),
    /**
     *
     */
    DBUBBO_SENTINEL(200,"dubbo熔断");



    private Integer errorCode;

    private String message;

    ErrorCodeEnmu(Integer errorCode, String message) {
        this.errorCode = errorCode;
        this.message = message;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
